removed unnecessary G_OBJECT() cast checks.
authorManish Singh <yosh@gimp.org>
Sun, 8 Feb 2004 09:13:18 +0000 (09:13 +0000)
committerManish Singh <yosh@src.gnome.org>
Sun, 8 Feb 2004 09:13:18 +0000 (09:13 +0000)
Sun Feb  8 01:07:20 2004  Manish Singh  <yosh@gimp.org>

        * gdk-pixbuf-io.c: removed unnecessary G_OBJECT() cast checks.

        * io-jpeg.c: make the return type for to_callback_empty_output_buffer
        "boolean", which should be defined by the jpeg headers. The right
        return type for this function depends on how the jpeg library
        was built (one wonders what happens if different compilers are used).

gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk-pixbuf-io.c
gdk-pixbuf/io-jpeg.c

index 984a896d8b1468d97bb10aa6698c9c33372dad40..9517c7492f8b05066d2fadcdc2f08bd6527b6a18 100644 (file)
@@ -1,3 +1,12 @@
+Sun Feb  8 01:07:20 2004  Manish Singh  <yosh@gimp.org>
+
+       * gdk-pixbuf-io.c: removed unnecessary G_OBJECT() cast checks.
+
+       * io-jpeg.c: make the return type for to_callback_empty_output_buffer
+       "boolean", which should be defined by the jpeg headers. The right
+       return type for this function depends on how the jpeg library
+       was built (one wonders what happens if different compilers are used).
+
 2004-01-28  Hans Breuer  <hans@breuer.org>
 
        * gdk_pixbuf.def : updated externals
index 11abe65dbeb70f81833638fe5c2ed0f048340722..4ec06195b92deefcedd5c949ccbbad05553a62ae 100644 (file)
@@ -884,7 +884,7 @@ gdk_pixbuf_new_from_file_at_size (const char *filename,
                        if (!gdk_pixbuf_loader_write (loader, buffer, length, error)) {
                                gdk_pixbuf_loader_close (loader, NULL);
                                fclose (f);
-                               g_object_unref (G_OBJECT (loader));
+                               g_object_unref (loader);
                                return NULL;
                        }
        }
@@ -892,14 +892,14 @@ gdk_pixbuf_new_from_file_at_size (const char *filename,
        fclose (f);
 
        if (!gdk_pixbuf_loader_close (loader, error)) {
-               g_object_unref (G_OBJECT (loader));
+               g_object_unref (loader);
                return NULL;
        }
 
        pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
 
        if (!pixbuf) {
-               g_object_unref (G_OBJECT (loader));
+               g_object_unref (loader);
                g_set_error (error,
                              GDK_PIXBUF_ERROR,
                              GDK_PIXBUF_ERROR_FAILED,
@@ -910,7 +910,7 @@ gdk_pixbuf_new_from_file_at_size (const char *filename,
 
        g_object_ref (pixbuf);
 
-       g_object_unref (G_OBJECT (loader));
+       g_object_unref (loader);
 
        return pixbuf;
 }
@@ -956,7 +956,6 @@ gdk_pixbuf_get_file_info (const gchar  *filename,
                          gint         *height)
 {
        GdkPixbufLoader *loader;
-       GError *temp = NULL;
        guchar buffer [4096];
        int length;
        FILE *f;
@@ -992,7 +991,7 @@ gdk_pixbuf_get_file_info (const gchar  *filename,
 
        fclose (f);
        gdk_pixbuf_loader_close (loader, NULL);
-       g_object_unref (G_OBJECT (loader));
+       g_object_unref (loader);
 
        if (width) 
                *width = info.width;
index 4dd5f8f2a52f43de756a2d71c3a159b0f76981c6..82acc7d1397d9427b77d13560f441adc041567c0 100644 (file)
@@ -829,7 +829,7 @@ to_callback_do_write (j_compress_ptr cinfo, gsize length)
         }
 }
 
-static guchar
+static boolean
 to_callback_empty_output_buffer (j_compress_ptr cinfo)
 {
        ToFunctionDestinationManager *destmgr;